// 字符串的扩展方法

const msg = "Error: foo is not defined.";
// console.log(msg.startsWith('Error'));
// console.log(msg.endsWith('.'));
console.log(msg.includes('foo'));